Ext.onReady(function(){
    Ext.get('submit1').on('click',function(){
        Ext.Ajax.request({
            //url: 'page.php',
            url: 'admin/login',
            timeout: 60000,
            form: 'myform',
            cors:true,
            method: 'POST',
            params: {
                id: 1,
                username: Ext.get('username').getValue(),
                password: Ext.get('password').getValue(),
                qrpassword: Ext.get('qrpassword').getValue()
            },
            success: function(response, opts){
                //var text = Ext.decode(response.responseText);
                var text = response.responseText;
                // process server response here
                console.dir(text);
            },
            failure: function(response, opts) {
                console.log('server-side failure with status code ' + response.status);
            }
        });
    });
});